<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script src="../../resources/js-test.js"></script>
</head>
<body>
<script>

description("Tests that shorthand border-image with a null image doesn't crash.");

var testContainer = document.createElement("div");
document.body.appendChild(testContainer);

testContainer.innerHTML = '<div id="test">hello</div>';

e = document.getElementById('test');
computedStyle = window.getComputedStyle(e, null);
e.style.borderImage = "10% fill";

shouldBe("computedStyle.getPropertyValue('border-image')", "'none'");

document.body.removeChild(testContainer);
</script>
</body>
</html>
